package cn.skycity.common;

import cn.skycity.framework.core.config.FeignConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author daiyb2
 * @Title: SkycityAdminApplication
 * @Description:
 * @date 2021/10/30 0:26
 **/
@SpringBootApplication
@ComponentScan(basePackages = {"cn.skycity.common", "cn.skycity.framework.service"})
@EnableDiscoveryClient
@EnableFeignClients(defaultConfiguration = FeignConfiguration.class, basePackages = {"com.skycity.framework.uaa","cn.skycity.common.feign"})
public class SkycityCommonApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SkycityCommonApplication.class, args);
    }
}
